<template>

</template>

<script>
  import axios from "axios";
    export default {
        name: "deleteShop",
      mounted() {

        var sid = this.$route.params.sid

        alert("hahah")

        if(axios.delete("/api/deleteShop/" + sid).then(res.data == "success")){
          /*  this.$router.go(0)*/
          this.$router.push("/ShopIndex");
          /*this.reload()*/
        }else{
          alert("删除失败！！！");
        }
      }
    }
</script>

<style scoped>

</style>
